home *** CD-ROM | disk | FTP | other *** search
/ Clickx 40 / Clickx 40.iso / assets / software / iTunesSetup.exe / AppleMobileDeviceSupport.msi / Frameworks_Foundation.framework_Resources_Intrinsics.sdef < prev    next >
Encoding:
Extensible Markup Language  |  2007-06-28  |  4.2 KB  |  105 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
  3.  
  4. <dictionary title="Cocoa Scripting Intrinsics">
  5.  
  6.     <suite name="Intrinsics" code="intr" description="" hidden="yes">
  7.  
  8.         <value-type name="any" code="****">
  9.             <cocoa class="NSAppleEventDescriptor"/>
  10.         </value-type>
  11.         <value-type name="boolean" code="bool">
  12.             <cocoa class="NSNumber"/>
  13.         </value-type>
  14.         <value-type name="date" code="ldt ">
  15.             <cocoa class="NSDate"/>
  16.         </value-type>
  17.         <value-type name="file" code="file">
  18.             <cocoa class="NSURL"/>
  19.         </value-type>
  20.         <value-type name="integer" code="long">
  21.             <cocoa class="NSNumber"/>
  22.         </value-type>
  23.         <value-type name="location specifier" code="insl">
  24.             <cocoa class="NSPositionalSpecifier"/>
  25.         </value-type>
  26.         <value-type name="missing value" code="msng">
  27.             <cocoa class="NSNull"/>
  28.         </value-type>
  29.         <value-type name="number" code="nmbr">
  30.             <cocoa class="NSNumber"/>
  31.         </value-type>
  32.         <value-type name="point" code="QDpt">
  33.             <cocoa class="NSData"/>
  34.         </value-type>
  35.         <value-type name="real" code="doub">
  36.             <cocoa class="NSNumber"/>
  37.         </value-type>
  38.         <!-- The general "record" type is used as the type of the item class' properties property, and the type of the duplicate and make commands "with properties" parameters. Cocoa's default implementation of the duplicate, make, get, and set command have special code to handle the fact that merely declaring something to be of record type doesn't provide enough information to convert Apple event record descriptors to NSDictionaries. That code only kicks in for specific instances, and you can't get at it. Instead of using this, you should declare specific record types (see "print settings" for example) and use those for class properties and command parameters. That's better scriptability anyway. -->
  39.         <value-type name="record" code="reco">
  40.             <cocoa class="NSDictionary"/>
  41.         </value-type>
  42.         <value-type name="rectangle" code="qdrt">
  43.             <cocoa class="NSData"/>
  44.         </value-type>
  45.         <value-type name="specifier" code="obj ">
  46.             <cocoa class="NSScriptObjectSpecifier"/>
  47.         </value-type>
  48.         <!-- We use 'TEXT' (typeChar, in <AE/AEDataModel.h>) as the four character code of the text type to make parameters and properties declared with this type appear as "text" in scripting dictionaries. The alternatives, "Unicode text" and "string" for example, are needlessly technical terms and not fit for presentation to people writing scripts. Cocoa does however always use Unicode internally when converting from/to Apple event descriptors for the best possible fidelity. -->
  49.         <value-type name="text" code="TEXT">
  50.             <cocoa class="NSString"/>
  51.         </value-type>
  52.         <value-type name="type" code="type">
  53.             <cocoa class="NSNumber"/>
  54.         </value-type>
  55.  
  56.         <command name="get" code="coregetd" description="Returns the value of the specified object(s).">
  57.             <cocoa class="NSGetCommand"/>
  58.             <direct-parameter type="specifier"/>
  59.             <result type="any"/>
  60.         </command>
  61.  
  62.         <command name="set" code="coresetd" description="Sets the value of the specified object(s).">
  63.             <cocoa class="NSSetCommand"/>
  64.             <direct-parameter type="specifier"/>
  65.             <parameter name="to" code="data" type="any" description="The new value.">
  66.                 <cocoa key="Value"/>
  67.             </parameter>
  68.         </command>
  69.  
  70.         <class name="item" code="cobj" description="A scriptable object.">
  71.             <cocoa class="NSObject"/>
  72.             <property name="class" code="pcls" type="type" access="r" description="The class of the object.">
  73.                 <cocoa key="classCode"/>
  74.             </property>
  75.             <property name="properties" code="pALL" type="record" description="All of the object's properties.">
  76.                 <cocoa key="scriptingProperties"/>
  77.             </property>
  78.             <!-- These blank method declarations are necessary because of a Cocoa Scripting implementation detail. Ordinarily you wouldn't do this. -->
  79.             <responds-to name="count">
  80.                 <cocoa method=""/>
  81.             </responds-to>
  82.             <responds-to name="delete">
  83.                 <cocoa method=""/>
  84.             </responds-to>
  85.             <responds-to name="duplicate">
  86.                 <cocoa method=""/>
  87.             </responds-to>
  88.             <responds-to name="exists">
  89.                 <cocoa method=""/>
  90.             </responds-to>
  91.             <responds-to name="get">
  92.                 <cocoa method=""/>
  93.             </responds-to>
  94.             <responds-to name="move">
  95.                 <cocoa method=""/>
  96.             </responds-to>
  97.             <responds-to name="set">
  98.                 <cocoa method=""/>
  99.             </responds-to>
  100.         </class>
  101.  
  102.     </suite>
  103.  
  104. </dictionary>
  105.